package com.lsq.service.impl;

import com.lsq.entity.Auction;
import com.lsq.mapper.AuctionMapper;
import com.lsq.service.AuctionService;
import com.lsq.utils.MyBatisUtil;

import java.util.Collections;
import java.util.List;

/**
 * @version 1.0
 * @author:罗苏琴
 * @Date 2024/12/16 下午2:14
 */
public class AuctionServiceImpl implements AuctionService {
    AuctionMapper auctionMapper= MyBatisUtil.getMapper(AuctionMapper.class,true);
    @Override
    public int getCount(Auction auction) {
        return auctionMapper.getCount(auction);
    }

    @Override
    public List<Auction> getPageList(Auction auction, int pageBegin, int pageSize) {
        return auctionMapper.getPageList(auction,(pageBegin-1)*pageSize,pageSize);
    }
}
